/**
 * 打开选项卡，进行响应的模块
 * @param url
 * @param name
 * @param id
 */
function showTab(url, name, id) {
    let length = $("li[lay-id=" + id + "]").length;
    let element = layui.element;
    if (length == 0) {
        let fullUrl = "/" + url;
        let height = $(window).height() - 185;
        let contet = '<iframe style="width:100%;" height="' + height + 'px" src="' + fullUrl + '" frameborder="0" scrolling="no">'
        element.tabAdd('menu', {
            title: name,
            content: contet,
            id: id
        })
    }
    element.tabChange("menu", id);

}